"""注册登录模块参数化文件定义"""

# 1-获取图片验证码参数化数据
img_code = [{"desc":"获取图片验证码成功（随机小数）","r":"0.123", "except_code":200},
            {"desc":"获取图片验证码成功（随机整数）","r":"123", "except_code":200},
            {"desc":"获取图片验证码失败（随机数为空）","r":"", "except_code":404},
            {"desc":"获取图片验证码失败（随机数为字符串）","r":"asd", "except_code":400}]

# 2-获取短信验证码参数化数据
phone_code = [{"desc":"获取短信验证码成功", "phone":13800000001, "imgVerifyCode":8888, "ecpect_text":"发送成功"},
              {"desc":"获取短信验证码失败（图片验证码错误）", "phone":13800000001, "imgVerifyCode":9999, "ecpect_text":"验证码错误"}]

# 3- 注册接口参数化数据
register_data = [{"desc": "注册成功（必填参数）","phone": 13800000001,"password": "test123","verifycode": 8888,
                  "phone_code": 666666,"expect_text": "注册成功"},
                 {"desc": "注册失败（图片验证码错误）","phone": 13800000002,"password": "test123","verifycode": 8889,
                  "phone_code": 666666,"expect_text": "验证码错误"},
                 {"desc": "注册失败（短信验证码错误）","phone": 13800000002,"password": "test123","verifycode": 8888,
                  "phone_code": 666667, "expect_text": "验证码错误"},
                 {"desc": "注册失败（手机号已存在）","phone": 13800000001,"password": "test123","verifycode": 8888,
                  "phone_code": 666666,"expect_text": "已存在"}]

# 4-登录接口参数化数据
login = [{"desc": "登录失败（解锁）","keywords": 13800000001,"password": "error123","expect_text": "登录成功"},
         {"desc": "登录成功","keywords": 13800000001,"password": "test123","expect_text": "登录成功"},
         {"desc": "登录失败（密码为空）","keywords": 13800000001,"password": "","expect_text": "不能为空"},]

# 登录状态接口参数化数据
login_status = [{"desc": "查询登录状态（未登录）","phone": 13800000001,"password": "","expect_text": "未登"},
                {"desc": "查询登录状态（已登录）","phone": 13800000001,"password": "test123","expect_text": "OK"}]
